Left Termination of the query pattern p_in_2(g, a) w.r.t. the given Prolog program could not be shown:



Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof

Clauses:

p(X, X).
p(f(X), g(Y)) :- ','(p(f(X), f(Z)), p(Z, g(W))).

Queries:

p(g,a).

We use the technique of [30]. With regard to the inferred argument filtering the predicates were used in the following modes:
p_in: (b,f) (f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog



↳ Prolog
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof
  ↳ PrologToPiTRSProof

Pi-finite rewrite system:
The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)


Using Dependency Pairs [1,30] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

P_IN_GA(f(X), g(Y)) → U1_GA(X, Y, p_in_ga(f(X), f(Z)))
P_IN_GA(f(X), g(Y)) → P_IN_GA(f(X), f(Z))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → U2_GA(X, Y, Z, p_in_aa(Z, g(W)))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → P_IN_AA(Z, g(W))
P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
P_IN_AA(f(X), g(Y)) → P_IN_AA(f(X), f(Z))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → U2_AA(X, Y, Z, p_in_aa(Z, g(W)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_GA(x1, x2)  =  P_IN_GA(x1)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U1_GA(x1, x2, x3)  =  U1_GA(x3)

We have to consider all (P,R,Pi)-chains

↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_GA(f(X), g(Y)) → U1_GA(X, Y, p_in_ga(f(X), f(Z)))
P_IN_GA(f(X), g(Y)) → P_IN_GA(f(X), f(Z))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → U2_GA(X, Y, Z, p_in_aa(Z, g(W)))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → P_IN_AA(Z, g(W))
P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
P_IN_AA(f(X), g(Y)) → P_IN_AA(f(X), f(Z))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → U2_AA(X, Y, Z, p_in_aa(Z, g(W)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_GA(x1, x2)  =  P_IN_GA(x1)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U1_GA(x1, x2, x3)  =  U1_GA(x3)

We have to consider all (P,R,Pi)-chains
The approximation of the Dependency Graph [30] contains 1 SCC with 6 less nodes.

↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
PiDP
              ↳ UsableRulesProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting [30] we can delete all non-usable rules from R.

↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
PiDP
                  ↳ PiDPToQDPProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_aa(X, X) → p_out_aa(X, X)

The argument filtering Pi contains the following mapping:
f(x1)  =  f(x1)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem [30] into ordinary QDP problem [15] by application of Pi.

↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
QDP
                      ↳ Rewriting
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_in_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:

p_in_aap_out_aa

The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
By rewriting [15] the rule P_IN_AAU1_AA(p_in_aa) at position [0] we obtained the following new rules:

P_IN_AAU1_AA(p_out_aa)



↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
QDP
                          ↳ UsableRulesProof
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:

p_in_aap_out_aa

The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
                        ↳ QDP
                          ↳ UsableRulesProof
QDP
                              ↳ QReductionProof
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

R is empty.
The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

p_in_aa



↳ Prolog
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
                        ↳ QDP
                          ↳ UsableRulesProof
                            ↳ QDP
                              ↳ QReductionProof
QDP
                                  ↳ NonTerminationProof
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
We used the non-termination processor [17] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:none


s = U1_AA(p_out_aa) evaluates to t =U1_AA(p_out_aa)

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:




Rewriting sequence

U1_AA(p_out_aa)P_IN_AA
with rule U1_AA(p_out_aa) → P_IN_AA at position [] and matcher [ ]

P_IN_AAU1_AA(p_out_aa)
with rule P_IN_AAU1_AA(p_out_aa)

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.




We use the technique of [30]. With regard to the inferred argument filtering the predicates were used in the following modes:
p_in: (b,f) (f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga(x1)
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog



↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof

Pi-finite rewrite system:
The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga(x1)
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)


Using Dependency Pairs [1,30] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

P_IN_GA(f(X), g(Y)) → U1_GA(X, Y, p_in_ga(f(X), f(Z)))
P_IN_GA(f(X), g(Y)) → P_IN_GA(f(X), f(Z))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → U2_GA(X, Y, Z, p_in_aa(Z, g(W)))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → P_IN_AA(Z, g(W))
P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
P_IN_AA(f(X), g(Y)) → P_IN_AA(f(X), f(Z))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → U2_AA(X, Y, Z, p_in_aa(Z, g(W)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga(x1)
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_GA(x1, x2)  =  P_IN_GA(x1)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x1, x4)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)

We have to consider all (P,R,Pi)-chains

↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_GA(f(X), g(Y)) → U1_GA(X, Y, p_in_ga(f(X), f(Z)))
P_IN_GA(f(X), g(Y)) → P_IN_GA(f(X), f(Z))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → U2_GA(X, Y, Z, p_in_aa(Z, g(W)))
U1_GA(X, Y, p_out_ga(f(X), f(Z))) → P_IN_AA(Z, g(W))
P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
P_IN_AA(f(X), g(Y)) → P_IN_AA(f(X), f(Z))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → U2_AA(X, Y, Z, p_in_aa(Z, g(W)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga(x1)
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_GA(x1, x2)  =  P_IN_GA(x1)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x1, x4)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)

We have to consider all (P,R,Pi)-chains
The approximation of the Dependency Graph [30] contains 1 SCC with 6 less nodes.

↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
PiDP
              ↳ UsableRulesProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_ga(X, X) → p_out_ga(X, X)
p_in_ga(f(X), g(Y)) → U1_ga(X, Y, p_in_ga(f(X), f(Z)))
U1_ga(X, Y, p_out_ga(f(X), f(Z))) → U2_ga(X, Y, Z, p_in_aa(Z, g(W)))
p_in_aa(X, X) → p_out_aa(X, X)
p_in_aa(f(X), g(Y)) → U1_aa(X, Y, p_in_aa(f(X), f(Z)))
U1_aa(X, Y, p_out_aa(f(X), f(Z))) → U2_aa(X, Y, Z, p_in_aa(Z, g(W)))
U2_aa(X, Y, Z, p_out_aa(Z, g(W))) → p_out_aa(f(X), g(Y))
U2_ga(X, Y, Z, p_out_aa(Z, g(W))) → p_out_ga(f(X), g(Y))

The argument filtering Pi contains the following mapping:
p_in_ga(x1, x2)  =  p_in_ga(x1)
p_out_ga(x1, x2)  =  p_out_ga(x1)
f(x1)  =  f(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting [30] we can delete all non-usable rules from R.

↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
PiDP
                  ↳ PiDPToQDPProof

Pi DP problem:
The TRS P consists of the following rules:

P_IN_AA(f(X), g(Y)) → U1_AA(X, Y, p_in_aa(f(X), f(Z)))
U1_AA(X, Y, p_out_aa(f(X), f(Z))) → P_IN_AA(Z, g(W))

The TRS R consists of the following rules:

p_in_aa(X, X) → p_out_aa(X, X)

The argument filtering Pi contains the following mapping:
f(x1)  =  f(x1)
g(x1)  =  g(x1)
p_in_aa(x1, x2)  =  p_in_aa
p_out_aa(x1, x2)  =  p_out_aa
P_IN_AA(x1, x2)  =  P_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem [30] into ordinary QDP problem [15] by application of Pi.

↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
QDP
                      ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_in_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:

p_in_aap_out_aa

The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
By rewriting [15] the rule P_IN_AAU1_AA(p_in_aa) at position [0] we obtained the following new rules:

P_IN_AAU1_AA(p_out_aa)



↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
QDP
                          ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:

p_in_aap_out_aa

The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
                        ↳ QDP
                          ↳ UsableRulesProof
QDP
                              ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

R is empty.
The set Q consists of the following terms:

p_in_aa

We have to consider all (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

p_in_aa



↳ Prolog
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ PiDP
              ↳ UsableRulesProof
                ↳ PiDP
                  ↳ PiDPToQDPProof
                    ↳ QDP
                      ↳ Rewriting
                        ↳ QDP
                          ↳ UsableRulesProof
                            ↳ QDP
                              ↳ QReductionProof
QDP
                                  ↳ NonTerminationProof

Q DP problem:
The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
We used the non-termination processor [17] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

The TRS P consists of the following rules:

P_IN_AAU1_AA(p_out_aa)
U1_AA(p_out_aa) → P_IN_AA

The TRS R consists of the following rules:none


s = U1_AA(p_out_aa) evaluates to t =U1_AA(p_out_aa)

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:




Rewriting sequence

U1_AA(p_out_aa)P_IN_AA
with rule U1_AA(p_out_aa) → P_IN_AA at position [] and matcher [ ]

P_IN_AAU1_AA(p_out_aa)
with rule P_IN_AAU1_AA(p_out_aa)

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.